<?php
/*
 * Created on Jul 5, 2011
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

require_once ('db/DBManager.php');
require_once ('db/TopStoriesLoader.php');
DBManager :: getInstance();
$contentLoader = new TopStoriesLoader();
$contentArray = $contentLoader->getTopStories();

foreach ($contentArray as & $content)
{
	echo "<div class='storyTitle' onclick=getStory(".$content->getStoryId().")>".$content->getStoryTitle()."</div>";
	echo "<div class='author'>-".$content->getAuthor()."</div>";
	echo "<div class='dated'>".$content->getDated()."</div>";
	echo "<div class='shortText' onclick=getStory(".$content->getStoryId().")>".$content->getShortText()."</div>";


}


?>
